package com.my.simple.service.auth;

import com.my.simple.entity.auth.Role;
import com.my.simple.entity.auth.RoleOperation;

import java.util.List;

public interface RoleService {
    Role getRoleById(Integer roleId);

    void addRole(Role role);

    List<Role> getAllRole();

    void deleteRoleById(Integer roleId);

    void updateRole(Role roleItem);

    void addRoleOperation(Integer roleId, Integer operationId);

    void deleteRoleOperation(Integer roleId, Integer operationId);

    List<RoleOperation> getRoleOperationByRoleId(Integer roleId);

    void updateRoleOperation(List<RoleOperation> roleOperationList);
}
